<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>文字排版</title>
    <style>
        .demo {
            margin: 30px auto;
            width: 500px;
            padding: 10px;
            border: 1px solid #ccc;
            height: 60px;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
        }
    </style>
</head>
<body>
    <div class="demo">
        CSS是Cascading Style Sheets（级联样式表）的缩写，也叫层叠样式表。CSS是一种样式表语言，用于为HTML文档定义布局。例如，CSS涉及字体、颜色、边距、高度、宽度、背景图像、高级定位等方面。
    </div>
</body>
</html>